package com.ctsi.question.entity;

import com.ctsi.framework.common.convert.DateSerializerConvert;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import javax.persistence.*;
import java.io.Serializable;

@Entity
@Table(name = "t_week_report")
public class WeekReportEntity implements Serializable {

    @Id
    private String id;

    /**
     * 周报类型
     */
    @Column
    private Integer weekReportType;
    /**
     * 领导批示
     */
    @Lob
    private String leaderApproval;
    /**
     * 领导批示时间
     */
    @JsonSerialize(using = DateSerializerConvert.Long2DateTimeSerialize.class)
    @Column
    private Long leaderApprovalTime;

    /**
     * 领导评价
     */
    @Column
    private String leaderEval;

    /**
     * 提交人ID
     */
    @Column
    private String submitorId;

    /**
     * 提交人姓名
     */
    @Column
    private String submitorName;
    /**
     * 提交人部门名称
     */
    @Column
    private String departName;
    /**
     * 提交人所在部门ID
     */
    @Column
    private String departId;

    /**
     * 周报时间
     */
    @Column
    private Long reportTime;

    @Column
    private String reportTitle;


    public WeekReportEntity() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getWeekReportType() {
        return weekReportType;
    }

    public void setWeekReportType(Integer weekReportType) {
        this.weekReportType = weekReportType;
    }

    public String getLeaderApproval() {
        return leaderApproval;
    }

    public void setLeaderApproval(String leaderApproval) {
        this.leaderApproval = leaderApproval;
    }

    public Long getLeaderApprovalTime() {
        return leaderApprovalTime;
    }

    public void setLeaderApprovalTime(Long leaderApprovalTime) {
        this.leaderApprovalTime = leaderApprovalTime;
    }

    public String getLeaderEval() {
        return leaderEval;
    }

    public void setLeaderEval(String leaderEval) {
        this.leaderEval = leaderEval;
    }

    public String getSubmitorId() {
        return submitorId;
    }

    public void setSubmitorId(String submitorId) {
        this.submitorId = submitorId;
    }

    public String getSubmitorName() {
        return submitorName;
    }

    public void setSubmitorName(String submitorName) {
        this.submitorName = submitorName;
    }

    public String getDepartName() {
        return departName;
    }

    public void setDepartName(String departName) {
        this.departName = departName;
    }

    public String getDepartId() {
        return departId;
    }

    public void setDepartId(String departId) {
        this.departId = departId;
    }

    public Long getReportTime() {
        return reportTime;
    }

    public void setReportTime(Long reportTime) {
        this.reportTime = reportTime;
    }

    public String getReportTitle() {
        return reportTitle;
    }

    public void setReportTitle(String reportTitle) {
        this.reportTitle = reportTitle;
    }
}
